<?php

	$lsid = $_GET['lsid'];
	$parts = explode(":", $lsid );

	$id = $parts[4];

	$file_name = "predicates/" . $id . ".metadata";



	$file = @fopen($file_name, "r") or die("could't open file \"$file_name\"");
	$metadata = @fread($file, filesize ($file_name));
	fclose($file);

	header('Content-Type: application/rdf+xml');	
	echo $metadata;
?>
